package com.zz.employeedao;


import java.text.ParseException;
import java.util.List;

import org.springframework.web.bind.annotation.RequestParam;

import com.zz.personmodel.Employee;

public interface EmployeeDao {
    //修改员工
	public String updateEmployee(@RequestParam(value = "id", required = false) int id,@RequestParam(value = "identity_number", required = false) String identity_number,
			@RequestParam(value = "person_name", required = false) String person_name,
			@RequestParam(value = "birth_time", required = false) String birth_time,
			@RequestParam(value = "sex") String sex, @RequestParam(value = "matital_status") String matital_status,
			@RequestParam(value = "spouse_name") String spouse_name);
	///添加员工
	public String addEmployee(@RequestParam(value = "identity_number", required = false) String identity_number,
			@RequestParam(value = "person_name", required = false) String person_name,
			@RequestParam(value = "birth_time", required = false) String birth_time,
			@RequestParam(value = "sex") String sex,
			@RequestParam(value = "matital_status") String matital_status,
			@RequestParam(value = "spouse_name") String spouse_name) throws ParseException;
	//查询员工
	List<Employee> findEmployee(@RequestParam(value = "identity_number", required = true) String identity_number,
			@RequestParam(value = "person_name", required = true)String person_name,
			@RequestParam(value = "birth_time", required = true) String birth_time,
			@RequestParam(value = "gender", required = false) String gender,
			@RequestParam(value = "page", required = false) Integer page);
	//查看员工
	public String viewEmployee(Employee employee,String ID);
	//删除员工
	public boolean deletEmployee(@RequestParam(value="id",required=false) int id);
	


}
